home *** CD-ROM | disk | FTP | other *** search
/ Apple AUX 3.0 / Apple AUX 3.0.iso / System Folder / Extensions / AppleShare / AppleShare.rsrc / bin.rsrc_INIT_32_RealFSInit.txt < prev    next >
Text File  |  1991-04-25  |  4KB  |  65 lines

  1. start:
  2. 00000000  48E7 1020                movem.l    -[A7], D3,A2
  3. 00000004  363C 0001                move.w     D3, 0x1
  4. 00000008  303C 00AD                move.w     D0, 0xAD
  5. 0000000C  A346                     syscall    GetOSTrapAddress, flags=3
  6. 0000000E  2248                     movea.l    A1, A0
  7. 00000010  303C 009F                move.w     D0, 0x9F
  8. 00000014  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  9. 00000016  B3C8                     cmpa.l     A1, A0
  10. 00000018  6714                     beq        +0x16 /* 0000002E */
  11. 0000001A  203C 6673 2020           move.l     D0, 0x66732020 /* 'fs  ' */
  12. 00000020  A1AD                     syscall    Gestalt, flags=1
  13. 00000022  3600                     move.w     D3, D0
  14. 00000024  6608                     bne        +0xA /* 0000002E */
  15. 00000026  2008                     move.l     D0, A0
  16. 00000028  0800 0000                btst.b     D0, 0x0
  17. 0000002C  6668                     bne        +0x6A /* 00000096 */
  18. label0000002E:
  19. 0000002E  42A7                     clr.l      -[A7]
  20. 00000030  2F3C 6173 6364           move.l     -[A7], 0x61736364 /* 'ascd' */
  21. 00000036  3F3C 0029                move.w     -[A7], 0x29 /* ')' */
  22. 0000003A  A81F                     syscall    Get1Resource
  23. 0000003C  201F                     move.l     D0, [A7]+
  24. 0000003E  6756                     beq        +0x58 /* 00000096 */
  25. 00000040  2440                     movea.l    A2, D0
  26. 00000042  2F0A                     move.l     -[A7], A2
  27. 00000044  A992                     syscall    DetachResource
  28. 00000046  2012                     move.l     D0, [A2]
  29. 00000048  A055                     syscall    StripAddress
  30. 0000004A  2240                     movea.l    A1, D0
  31. 0000004C  7060                     moveq.l    D0, 0x60
  32. 0000004E  A346                     syscall    GetOSTrapAddress, flags=3
  33. 00000050  2288                     move.l     [A1], A0
  34. 00000052  2049                     movea.l    A0, A1
  35. 00000054  5848                     addq.w     A0, 4
  36. 00000056  7060                     moveq.l    D0, 0x60
  37. 00000058  A247                     syscall    SetOSTrapAddress, flags=2
  38. 0000005A  0C43 0001                cmpi.w     D3, 0x1
  39. 0000005E  6736                     beq        +0x38 /* 00000096 */
  40. 00000060  42A7                     clr.l      -[A7]
  41. 00000062  2F3C 6173 6364           move.l     -[A7], 0x61736364 /* 'ascd' */
  42. 00000068  3F3C 002A                move.w     -[A7], 0x2A /* '*' */
  43. 0000006C  A81F                     syscall    Get1Resource
  44. 0000006E  201F                     move.l     D0, [A7]+
  45. 00000070  6724                     beq        +0x26 /* 00000096 */
  46. 00000072  2440                     movea.l    A2, D0
  47. 00000074  2F0A                     move.l     -[A7], A2
  48. 00000076  A992                     syscall    DetachResource
  49. 00000078  2012                     move.l     D0, [A2]
  50. 0000007A  A055                     syscall    StripAddress
  51. 0000007C  2040                     movea.l    A0, D0
  52. 0000007E  2248                     movea.l    A1, A0
  53. 00000080  5848                     addq.w     A0, 4
  54. 00000082  203C 6673 2020           move.l     D0, 0x66732020 /* 'fs  ' */
  55. 00000088  0C43 0000                cmpi.w     D3, 0x0
  56. 0000008C  6704                     beq        +0x6 /* 00000092 */
  57. 0000008E  A3AD                     syscall    NewGestalt, flags=3
  58. 00000090  6004                     bra        +0x6 /* 00000096 */
  59. label00000092:
  60. 00000092  A5AD                     syscall    ReplaceGestalt, flags=5
  61. 00000094  2288                     move.l     [A1], A0
  62. label00000096:
  63. 00000096  4CDF 0408                movem.l    D3,A2, [A7]+
  64. 0000009A  4E75                     rts
  65.